So far we have seen single-dimension arrays. It is possible to define multi-dimensional arrays which mean that you can store tables or even 3D structures.
int image[][] = new image [5][5];
Ok the above image is crap but we can represent it in a 2d array -
The 1 represents the square being red and 0 represents the square being white. This is how bitmap images are stored. We can then encode RGB values as a int number and store it in a 2d array. This is how bitmap images are stored.